
<script setup>
  import {uniFetch} from '@/apis/uni-fetch.js'
  function login(){
    uniFetch.post('/driver/login/account',{
      account: 'zyb123',
      password: '123456'
    }).then((res) => {
      console.log(res)
    }).catch(err =>
      uni.utils.toast())
  }
</script>
<template>
	<uni-forms class="login-form" ref="form">
		<uni-forms-item name="name">
			<input
				type="text"
				placeholder="请输入账号"
				class="uni-input-input"
				placeholder-style="color: #818181"
			/>
		</uni-forms-item>
		<uni-forms-item name="name">
			<input
				type="text"
				placeholder="请输入密码"
				class="uni-input-input"
				placeholder-style="color: #818181"
			/>
		</uni-forms-item>
		<button class="submit-button" @click="login()">登录</button>
	</uni-forms>
</template>


<style lang="scss" scoped>
	@import './styles.scss';
</style>
